package com.lite.business.service.retailer;

import com.baomidou.mybatisplus.extension.service.IService;
import com.lite.business.entity.retailer.Retailer;
import com.lite.business.entity.retailer.RetailerQueryWrapper;
import com.lite.business.exception.BusinessException;

import java.util.List;

/**
 * <p>
 * 服务类
 * </p>
 *
 * @author stranger
 * @since 2022-10-25
 */
public interface RetailerService extends IService<Retailer> {

    Retailer getRetailerById(Integer retailerId) throws BusinessException;

    List<Retailer> listRetailerByPage(Integer page, Integer size, RetailerQueryWrapper retailerQueryWrapper) throws BusinessException;


    Boolean updateRetailerInfo(Integer retailerId, Retailer newRetailer) throws BusinessException;

    Boolean removeRetailerInfo(Integer retailerId) throws BusinessException;

    Boolean addRetailerInfo(Retailer retailer) throws BusinessException;
}
